#define _CRT_SECURE_NO_WARNINGS

#include"Stack1.h"

void TestStack()
{
	ST st;
	StackInit(&st);
	StackPush(&st, 7);
	StackPush(&st, 8);

	/*printf("%d ", StackTop(&st));
	StackPop(&st);*/

	StackPush(&st, 9);
	StackPush(&st, 10);

	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	printf("\n");

	StackDestroy(&st);
}

int main()
{
	TestStack();

    return 0;
}